#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/11/10 21:26
# @Author  : lizhen
# @Site    : 
# @File    : cBase64.py
# @Software: PyCharm
import base64


class Base64Demo:
    def _test_str(self):
        """
        bd = Base64Demo()
        bd._test_str()
        """
        s = b'hello'
        a = base64.b64encode(s)

        print(a)
        print(base64.b64decode(a))


if __name__ == '__main__':
    bd = Base64Demo()
    bd._test_str()
